﻿<UserControl x:Class="StockholmsStad.Windows.UI.Modules.Couple.Views.TabItemExtrasView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">

    <Grid>
        
        <Grid.RowDefinitions>
            <RowDefinition Height="*" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>

        <!--Height="{Binding ActualHeight, ElementName=editBorder}"-->
            <TextBox Grid.Row="0" x:Name="extrastTextBox" TextWrapping="WrapWithOverflow" AcceptsReturn="True" 
                     MinHeight="350" Text="{Binding ExtrasInfo, UpdateSourceTrigger=Explicit}" Margin="5"
                     HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Auto" />

        <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" Margin="5" Grid.Row="1">
            <Button x:Name="cancelButton" Click="cancelButton_Click" Grid.Row="1" Content="Ångra" HorizontalAlignment="Right" IsEnabled="False" Margin="0,0,5,0"/>
            <Button x:Name="saveButton" Click="saveButton_Click" Command="{Binding SaveCommand}" Content="Spara" HorizontalAlignment="Right" IsEnabled="False" />
        </StackPanel>
    
    </Grid>
</UserControl>
